<extend name="Include:Layout"/>
<block name="title">当前课程</block>
<block name="style">
<style>
.weui_cell_bd p{font-size:14px;color:#999;}
.weui_media_box .weui_media_desc {   
	-webkit-box-orient: vertical;
    -webkit-line-clamp: 15;
}
.item {text-align: center;font-size: 15px;color:#888;}
.item a {padding:5px 10px;display:inline-block;border:1px solid #e5e5e5;border-radius:5px;}
.c-red {color:red;}
</style>
</block>

<block name="main">
	<php>
		$now = date("Y-m-d",time()); 
		$end = date("Y-m-d",strtotime("+1 month"));
	</php>
	<div class="weui_tab">
		<div class=" container" id="container">
					<div id="data-content">
						<volist name="lsinfo" id="vo">
						<div class="weui_panel weui_panel_access">
						  <div class="weui_panel_hd">{$vo.kecheng.title}-{$vo.banji.lessonname}({$vo.classtype})</div>
						  <div class="weui_panel_bd">
						    <a href="javascript:void(0);" class="weui_media_box weui_media_appmsg">
						      <div class="weui_media_bd">
						        <p class="weui_media_desc">
						        	姓名：{$vo.student}<br/>
					            	电话：{$vo.tel}<br/>
					            	<if condition="$vo['jzxm']">
					            	家长姓名：{$vo.jzxm}<br/>
					            	</if>
					            	校区：{$vo.xiaoqu.title}<br/>
					            	课程代码：{$vo.banji.lessoncode}<br/>
					            	课程时间：{$vo.banji.lessontime}<br/>
					            	<if condition="$vo['orderinfo']">
					            	时间段：{$vo.term.start_time}到{$vo.term.end_time}<br/>
					            	订单编号：{$vo.orderinfo.ddbh}<br/>
					            	微信订单号：{$vo.orderinfo.wxddh}<br/>
					            	缴费金额：{$vo.orderinfo.total}<br/>
					            	缴费时间：{$vo.orderinfo.update_time}<br/>
					            	</if>
					            	到期时间：{$vo.end_time}
					            	<if condition="$vo['end_time'] elt $end">
					            		<if condition="$vo['end_time'] lt $now">
					            		<span class="c-red">已过期，请续报</span>
					            		<else/>
					            		<span class="c-red">即将过期，请续报</span>
					            		</if>
					            	</if>
						        </p>
						      </div>
						    </a>
						  </div>
						</div>
						</volist>
					</div>
				</div>
	    </div>
</block>

<block name="script">

<script>

</script>
</block>